#ifndef __MAIN__H_
#define __MAIN__H_
#include <STC15F2K60S2.H>
#include "csb.h"
#include "frq.h"
#include "uart.h"
#include "adc.h"
#include "dsp.h"
#include "key.h"
#define LED(x) {P0=x; P2= (P2&0x1f|0x80); P2&=0x1f;}
#define BUZ(x) {P0=x; P2= (P2&0x1f|0xa0); P2&=0x1f;}
#define COM(x) {P0=x; P2= (P2&0x1f|0xc0); P2&=0x1f;}
#define SEG(x) {P0=x; P2= (P2&0x1f|0xe0); P2&=0x1f;}
#endif